//Fill in Teacher and Semester
$(function () {
    var customerSelect = $("#customer"),
        searchField    = $("#search"),
        options        = customerSelect.find("option").clone(); // clone into memory

    // generic function to clean text
    function sanitize(string) {
        return $.trim(string).replace(/\s+/g, ' ').toLowerCase();
    }

    // prepare the options by storing the
    // "searchable" name as data on the element
    options.each(function () {
        var option = $(this);
        option.data( "sanitized", sanitize(option.text()) );
    });

    // handle keyup
    searchField.on("keyup", function (event) {
        var term = sanitize( $(this).val() ),
            matches;

        // just show all options, if there's no search term
        if( !term ) {
            customerSelect.empty().append(options.clone());
            return;
        }

        // otherwise, show the options that match
        matches = options.filter(function () {
            return $(this).data("sanitized").indexOf(term) != -1;
        }).clone();
        customerSelect.empty().append(matches);
    });
});

function displayPriorThree(divId) {
	if(document.getElementById(divId).style.display == 'none')
	{
		document.getElementById(divId).style.display='block';
	}
		else
	{
		document.getElementById(divId).style.display = 'block';
	}
}




var instructorId = 550035577;
var year = 2013;

jQuery.get('https://chitester1dev.weber.edu:6838/misc/weber/CSEvals/ClassesTaught.cfm?instructorid='+instructorId+'&year='+year, function(data) {
			$.each(data.DATA, function(i,array) {	
			});
		});





